cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
set(NAME test_code)
project(${NAME})

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/")
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

set(CODE_NAME test_code)

add_definitions(-DORMPP_ENABLE_LOG)
add_definitions(-DORMPP_ENABLE_SQLITE3)

configure_file(configuration/root_directory.h.in configuration/root_directory.h)
include_directories(${CMAKE_BINARY_DIR}/configuration)

add_subdirectory(external)
add_subdirectory(pro)
add_subdirectory(examples)